-- GENERATED SPELL FOR [Shadowy Executioner] --


function spell0_16519(pUnit, Event) --@Execute,n/a--
pUnit:FullCastSpellOnTarget(7160,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16519', 0, 1)
end

function Sorts_16519(pUnit, Event)
local choix_sorts_16519 = math.random(0, 0)
if choix_sorts_16519 == 0 then
pUnit:RegisterEvent('spell0_16519', 1, 1)
end
end

function mob16519_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16519', math.random(1500, 3000), 1)
end

function mob16519_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16519_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16519_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16519, 1, 'mob16519_Action')
RegisterUnitEvent(16519, 2, 'mob16519_Leave')
RegisterUnitEvent(16519, 3, 'mob16519_Kill')
RegisterUnitEvent(16519, 4, 'mob16519_Die')
